package com.briup.smartlabs.exception;

import com.briup.smartlabs.utils.ResultCode;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ServiceException extends Exception{
    private ResultCode resultCode;

    public ServiceException(String msg){
        super((msg));
    }

    public ServiceException(ResultCode resultCode){
        super(resultCode.getCode()+" - "+resultCode.getMsg());
        this.resultCode=resultCode;
    }
}
